/**************************************
 *
 * VLOOK 模板主题
 *
 * powered by MAX°孟兆
 *
 * QQ Group: 805502564
 * email: maxchow@qq.com
 *
 *************************************/

@import "../font";
@import "../color";

// 指定字体主题
.applyFontStyle(serif);
// 指定主题配套的圆角
.applyThemeRadius(small);

// 主题信息
@themeName: "vlook-x-dic-2022";
@themeDesc: "DIC 2022";
@themeLogoLight: "";
@themeLogoDark: @themeLogoLight;

// 主题主色
@theme1: #00A0E6;
@theme2: #E60012;
@theme3: #FFFFFF;
@theme1Dark: darken(@theme1, 20%);
@theme1Alt: lighten(@theme1, 50%);
@theme1AltDark: @codeBgColorDark;
@theme2Dark: darken(@theme2, 20%);
@theme2Alt: lighten(@theme2, 50%);
@theme2AltDark: darken(@theme2Alt, 30%);
// @theme3Dark: darken(@theme3, 20%);
// @theme3Alt: lighten(@theme3, 40%);
// @theme3AltDark: darken(@theme3Alt, 30%);

@themeForeColor: @theme1;
@themeForeColorFade: fade(@themeForeColor, 50%);
@themeBgColor: @theme3;
@themeBgColorFade: fade(@themeForeColor, 50%);
@themeBgColorDark: darken(@themeForeColor, 20%);
@themeBgColorAlt: lighten(@themeForeColor, 42%);

// 标题色
@headerColor: @themeForeColor;
@headerColorDark: @themeForeColor;
// @tocHeaderNumColor: @docTextColorLightFade;
@contentHeaderNumColor: @themeBgColorFade;
@headerBackground: linear-gradient(90deg, var(--header-bg-end-color) 60%, var(--header-bg-start-color));
@multiHeaderBG: @headerBackground;
@headerTextAlign: right;
@headerPadding: 10px 30px 10px 10px;
@headerLetterSpacing: 0.3em;
@h1Shadown: none;
@h2Shadown: none;
@h3Shadown: none;
@h4Shadown: none;
@h5Shadown: none;
@h6Shadown: none;
@h1BorderLeft: 15px solid var(--header-box-shadow);
@h2BorderLeft: 15px solid var(--header-box-shadow);
@h3BorderLeft: 15px solid var(--header-box-shadow);
@h4BorderLeft: 15px solid var(--header-box-shadow);
@h5BorderLeft: 15px solid var(--header-box-shadow);
@h6BorderLeft: 0;
@h1BorderRight: 5px solid var(--header-box-shadow);
@h2BorderRight: 5px solid var(--header-box-shadow);
@h3BorderRight: 5px solid var(--header-box-shadow);
@h4BorderRight: 5px solid var(--header-box-shadow);
@h5BorderRight: 5px solid var(--header-box-shadow);
@h6BorderRight: 0;
@h1BorderTop: 0;
@h2BorderTop: 0;
@h3BorderTop: 0;
@h4BorderTop: 0;
@h5BorderTop: 0;
@h6BorderTop: 0;

// 行内代码背景色
@codeBgColor: lighten(@themeForeColor, 45%);;
@codeBgColorDark: darken(@themeForeColor, 25%);

// 按钮色
@buttonForeColor: @themeBgColor;
@buttonForeHoverColor: @theme3;
@buttonBgColor: @themeForeColor;

// 加粗文字颜色
// @boldColorLight: @docTextColorLight;//#202224;
// @boldColorDark: @docTextColorDark;

// 链接颜色
@aBorderWidth: 1px;
@aColor: @headerColor;
@aColorDark: @headerColorDark;
@aLineColor: @theme2;
@aHoverColor: @aLineColor;
@aActiveColor: desaturate(@aLineColor, 30%);

// 选中内容的背景色
@selectionColor: @aLineColor;//@aLineColor;//fade(@aLineColor, 50%);

// 表格十字光标颜色
@tableCrossBgColor: fade(@aLineColor, 50%);

// 封面、封底文字位置及对齐方式
@coverTextAlign: left;
@coverTextPadding: 240px 60px 50px;
@coverTextColor: @aLineColor;
@coverSubColor: @themeForeColor;
@coverSupColor: #606070;
@coverAuthorColor: @coverSupColor;
@coverOwnerColor: @coverAuthorColor;

@backCoverTextAlign: left;
@backCoverTextPadding: 120px 60px 50px;
@backCoverTextColor: @themeBgColor;

// 对比度边框色，用于主题色与背景色对比度比较低时的边缘视觉识别
@contrastBorder: 0 0 0 0 rgba(0, 0, 0, 0);
@contrastBorderForCover: 0 0 0 2px fade(@themeForeColor, 20%) inset;

// 封面背景设置
@coverBackgroundColor: @themeBgColor;
@coverBackgroundImage: url(@coverLogo), url(@coverBgTopLeft), url(@coverBgBottomLeft), url(@coverBgTopCenter), url(@coverBgTopRight), url(@coverBgBottomRight);
@coverBackgroundSize: auto;
@coverBackgroundRepeat: no-repeat;
@coverBackgroundPosition: top right, top left, left bottom, top center, top right, bottom right;
// 封底背景设置
@backCoverBackgroundColor: @themeForeColor;
@backCoverBackgroundImage: url(@backcoverLogo), url(@backcoverBgBottomLeft), url(@backcoverBgTopRight);
@backCoverBackgroundSize: @coverBackgroundSize;
@backCoverBackgroundRepeat: @coverBackgroundRepeat;
@backCoverBackgroundPosition: bottom right, bottom left, top right;

// 封面、封底素材资源
@coverLogo: "";
@coverBgTopLeft: "";
@coverBgBottomLeft: "";
@coverBgTopCenter: "";
@coverBgTopRight: "";
@coverBgBottomRight: "";
@backcoverLogo: "";
@backcoverBgBottomLeft: "";
@backcoverBgTopRight: "";

@import "../base";
